﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D75 RID: 3445
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PunkLordBattleRecord : IMessage<PunkLordBattleRecord>, IMessage, IEquatable<PunkLordBattleRecord>, IDeepCloneable<PunkLordBattleRecord>, IBufferMessage
	{
		// Token: 0x17002BB1 RID: 11185
		// (get) Token: 0x06009A8D RID: 39565 RVA: 0x0019CEB0 File Offset: 0x0019B0B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PunkLordBattleRecord> Parser
		{
			get
			{
				return PunkLordBattleRecord._parser;
			}
		}

		// Token: 0x17002BB2 RID: 11186
		// (get) Token: 0x06009A8E RID: 39566 RVA: 0x0019CEB7 File Offset: 0x0019B0B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PunkLordBattleRecordReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002BB3 RID: 11187
		// (get) Token: 0x06009A8F RID: 39567 RVA: 0x0019CEC9 File Offset: 0x0019B0C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PunkLordBattleRecord.Descriptor;
			}
		}

		// Token: 0x06009A90 RID: 39568 RVA: 0x0019CED0 File Offset: 0x0019B0D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleRecord()
		{
		}

		// Token: 0x06009A91 RID: 39569 RVA: 0x0019CEF0 File Offset: 0x0019B0F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleRecord(PunkLordBattleRecord other) : this()
		{
			this.uid_ = other.uid_;
			this.damageHp_ = other.damageHp_;
			this.isFinalHit_ = other.isFinalHit_;
			this.overKillDamageHp_ = other.overKillDamageHp_;
			this.battleReplayKey_ = other.battleReplayKey_;
			this.avatarList_ = other.avatarList_.Clone();
			this.assistScore_ = other.assistScore_;
			this.damageScore_ = other.damageScore_;
			this.finalHitScore_ = other.finalHitScore_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009A92 RID: 39570 RVA: 0x0019CF85 File Offset: 0x0019B185
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleRecord Clone()
		{
			return new PunkLordBattleRecord(this);
		}

		// Token: 0x17002BB4 RID: 11188
		// (get) Token: 0x06009A93 RID: 39571 RVA: 0x0019CF8D File Offset: 0x0019B18D
		// (set) Token: 0x06009A94 RID: 39572 RVA: 0x0019CF95 File Offset: 0x0019B195
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17002BB5 RID: 11189
		// (get) Token: 0x06009A95 RID: 39573 RVA: 0x0019CF9E File Offset: 0x0019B19E
		// (set) Token: 0x06009A96 RID: 39574 RVA: 0x0019CFA6 File Offset: 0x0019B1A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DamageHp
		{
			get
			{
				return this.damageHp_;
			}
			set
			{
				this.damageHp_ = value;
			}
		}

		// Token: 0x17002BB6 RID: 11190
		// (get) Token: 0x06009A97 RID: 39575 RVA: 0x0019CFAF File Offset: 0x0019B1AF
		// (set) Token: 0x06009A98 RID: 39576 RVA: 0x0019CFB7 File Offset: 0x0019B1B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsFinalHit
		{
			get
			{
				return this.isFinalHit_;
			}
			set
			{
				this.isFinalHit_ = value;
			}
		}

		// Token: 0x17002BB7 RID: 11191
		// (get) Token: 0x06009A99 RID: 39577 RVA: 0x0019CFC0 File Offset: 0x0019B1C0
		// (set) Token: 0x06009A9A RID: 39578 RVA: 0x0019CFC8 File Offset: 0x0019B1C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OverKillDamageHp
		{
			get
			{
				return this.overKillDamageHp_;
			}
			set
			{
				this.overKillDamageHp_ = value;
			}
		}

		// Token: 0x17002BB8 RID: 11192
		// (get) Token: 0x06009A9B RID: 39579 RVA: 0x0019CFD1 File Offset: 0x0019B1D1
		// (set) Token: 0x06009A9C RID: 39580 RVA: 0x0019CFD9 File Offset: 0x0019B1D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string BattleReplayKey
		{
			get
			{
				return this.battleReplayKey_;
			}
			set
			{
				this.battleReplayKey_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002BB9 RID: 11193
		// (get) Token: 0x06009A9D RID: 39581 RVA: 0x0019CFEC File Offset: 0x0019B1EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PunkLordBattleAvatar> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x17002BBA RID: 11194
		// (get) Token: 0x06009A9E RID: 39582 RVA: 0x0019CFF4 File Offset: 0x0019B1F4
		// (set) Token: 0x06009A9F RID: 39583 RVA: 0x0019CFFC File Offset: 0x0019B1FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AssistScore
		{
			get
			{
				return this.assistScore_;
			}
			set
			{
				this.assistScore_ = value;
			}
		}

		// Token: 0x17002BBB RID: 11195
		// (get) Token: 0x06009AA0 RID: 39584 RVA: 0x0019D005 File Offset: 0x0019B205
		// (set) Token: 0x06009AA1 RID: 39585 RVA: 0x0019D00D File Offset: 0x0019B20D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DamageScore
		{
			get
			{
				return this.damageScore_;
			}
			set
			{
				this.damageScore_ = value;
			}
		}

		// Token: 0x17002BBC RID: 11196
		// (get) Token: 0x06009AA2 RID: 39586 RVA: 0x0019D016 File Offset: 0x0019B216
		// (set) Token: 0x06009AA3 RID: 39587 RVA: 0x0019D01E File Offset: 0x0019B21E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FinalHitScore
		{
			get
			{
				return this.finalHitScore_;
			}
			set
			{
				this.finalHitScore_ = value;
			}
		}

		// Token: 0x06009AA4 RID: 39588 RVA: 0x0019D027 File Offset: 0x0019B227
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PunkLordBattleRecord);
		}

		// Token: 0x06009AA5 RID: 39589 RVA: 0x0019D038 File Offset: 0x0019B238
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PunkLordBattleRecord other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.DamageHp == other.DamageHp && this.IsFinalHit == other.IsFinalHit && this.OverKillDamageHp == other.OverKillDamageHp && !(this.BattleReplayKey != other.BattleReplayKey) && this.avatarList_.Equals(other.avatarList_) && this.AssistScore == other.AssistScore && this.DamageScore == other.DamageScore && this.FinalHitScore == other.FinalHitScore && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009AA6 RID: 39590 RVA: 0x0019D0FC File Offset: 0x0019B2FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.DamageHp != 0U)
			{
				num ^= this.DamageHp.GetHashCode();
			}
			if (this.IsFinalHit)
			{
				num ^= this.IsFinalHit.GetHashCode();
			}
			if (this.OverKillDamageHp != 0U)
			{
				num ^= this.OverKillDamageHp.GetHashCode();
			}
			if (this.BattleReplayKey.Length != 0)
			{
				num ^= this.BattleReplayKey.GetHashCode();
			}
			num ^= this.avatarList_.GetHashCode();
			if (this.AssistScore != 0U)
			{
				num ^= this.AssistScore.GetHashCode();
			}
			if (this.DamageScore != 0U)
			{
				num ^= this.DamageScore.GetHashCode();
			}
			if (this.FinalHitScore != 0U)
			{
				num ^= this.FinalHitScore.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009AA7 RID: 39591 RVA: 0x0019D1FA File Offset: 0x0019B3FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009AA8 RID: 39592 RVA: 0x0019D202 File Offset: 0x0019B402
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009AA9 RID: 39593 RVA: 0x0019D20C File Offset: 0x0019B40C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Uid);
			}
			if (this.DamageHp != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.DamageHp);
			}
			if (this.IsFinalHit)
			{
				output.WriteRawTag(24);
				output.WriteBool(this.IsFinalHit);
			}
			if (this.OverKillDamageHp != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.OverKillDamageHp);
			}
			if (this.BattleReplayKey.Length != 0)
			{
				output.WriteRawTag(42);
				output.WriteString(this.BattleReplayKey);
			}
			this.avatarList_.WriteTo(ref output, PunkLordBattleRecord._repeated_avatarList_codec);
			if (this.AssistScore != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.AssistScore);
			}
			if (this.DamageScore != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.DamageScore);
			}
			if (this.FinalHitScore != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.FinalHitScore);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009AAA RID: 39594 RVA: 0x0019D324 File Offset: 0x0019B524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.DamageHp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DamageHp);
			}
			if (this.IsFinalHit)
			{
				num += 2;
			}
			if (this.OverKillDamageHp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OverKillDamageHp);
			}
			if (this.BattleReplayKey.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.BattleReplayKey);
			}
			num += this.avatarList_.CalculateSize(PunkLordBattleRecord._repeated_avatarList_codec);
			if (this.AssistScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AssistScore);
			}
			if (this.DamageScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DamageScore);
			}
			if (this.FinalHitScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FinalHitScore);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009AAB RID: 39595 RVA: 0x0019D418 File Offset: 0x0019B618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PunkLordBattleRecord other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.DamageHp != 0U)
			{
				this.DamageHp = other.DamageHp;
			}
			if (other.IsFinalHit)
			{
				this.IsFinalHit = other.IsFinalHit;
			}
			if (other.OverKillDamageHp != 0U)
			{
				this.OverKillDamageHp = other.OverKillDamageHp;
			}
			if (other.BattleReplayKey.Length != 0)
			{
				this.BattleReplayKey = other.BattleReplayKey;
			}
			this.avatarList_.Add(other.avatarList_);
			if (other.AssistScore != 0U)
			{
				this.AssistScore = other.AssistScore;
			}
			if (other.DamageScore != 0U)
			{
				this.DamageScore = other.DamageScore;
			}
			if (other.FinalHitScore != 0U)
			{
				this.FinalHitScore = other.FinalHitScore;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009AAC RID: 39596 RVA: 0x0019D4F6 File Offset: 0x0019B6F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009AAD RID: 39597 RVA: 0x0019D500 File Offset: 0x0019B700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num <= 16U)
					{
						if (num == 8U)
						{
							this.Uid = input.ReadUInt32();
							continue;
						}
						if (num == 16U)
						{
							this.DamageHp = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 24U)
						{
							this.IsFinalHit = input.ReadBool();
							continue;
						}
						if (num == 32U)
						{
							this.OverKillDamageHp = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 50U)
				{
					if (num == 42U)
					{
						this.BattleReplayKey = input.ReadString();
						continue;
					}
					if (num == 50U)
					{
						this.avatarList_.AddEntriesFrom(ref input, PunkLordBattleRecord._repeated_avatarList_codec);
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.AssistScore = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.DamageScore = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.FinalHitScore = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003B84 RID: 15236
		private static readonly MessageParser<PunkLordBattleRecord> _parser = new MessageParser<PunkLordBattleRecord>(() => new PunkLordBattleRecord());

		// Token: 0x04003B85 RID: 15237
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B86 RID: 15238
		public const int UidFieldNumber = 1;

		// Token: 0x04003B87 RID: 15239
		private uint uid_;

		// Token: 0x04003B88 RID: 15240
		public const int DamageHpFieldNumber = 2;

		// Token: 0x04003B89 RID: 15241
		private uint damageHp_;

		// Token: 0x04003B8A RID: 15242
		public const int IsFinalHitFieldNumber = 3;

		// Token: 0x04003B8B RID: 15243
		private bool isFinalHit_;

		// Token: 0x04003B8C RID: 15244
		public const int OverKillDamageHpFieldNumber = 4;

		// Token: 0x04003B8D RID: 15245
		private uint overKillDamageHp_;

		// Token: 0x04003B8E RID: 15246
		public const int BattleReplayKeyFieldNumber = 5;

		// Token: 0x04003B8F RID: 15247
		private string battleReplayKey_ = "";

		// Token: 0x04003B90 RID: 15248
		public const int AvatarListFieldNumber = 6;

		// Token: 0x04003B91 RID: 15249
		private static readonly FieldCodec<PunkLordBattleAvatar> _repeated_avatarList_codec = FieldCodec.ForMessage<PunkLordBattleAvatar>(50U, PunkLordBattleAvatar.Parser);

		// Token: 0x04003B92 RID: 15250
		private readonly RepeatedField<PunkLordBattleAvatar> avatarList_ = new RepeatedField<PunkLordBattleAvatar>();

		// Token: 0x04003B93 RID: 15251
		public const int AssistScoreFieldNumber = 7;

		// Token: 0x04003B94 RID: 15252
		private uint assistScore_;

		// Token: 0x04003B95 RID: 15253
		public const int DamageScoreFieldNumber = 8;

		// Token: 0x04003B96 RID: 15254
		private uint damageScore_;

		// Token: 0x04003B97 RID: 15255
		public const int FinalHitScoreFieldNumber = 9;

		// Token: 0x04003B98 RID: 15256
		private uint finalHitScore_;
	}
}
